package com.baogu.factoryjob.service.impl;

import com.baogu.factoryjob.mapper.SensorDataMapper;
import com.baogu.factoryjob.service.SensordataService;
import com.baogu.factoryjob.util.UuidUtil;
import com.baogu.model.database.SensorData;
import com.baogu.model.database.where.SensorDataWhere;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SensordataServiceImpl implements SensordataService {

    @Autowired
    SensorDataMapper sensorDataMapper;

    @Override
    public Integer saveData(SensorData sensorData) {
        return sensorDataMapper.insertSelective(sensorData);
    }

    @Override
    public List<SensorData> getSensorDataList(SensorDataWhere where) {
        return sensorDataMapper.allList(where);
    }
}
